package com.h3c.ptability.entity;

import java.util.Date;
import java.sql.Blob;
import javax.persistence.*;
    import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: PtNoticeRecord
 *
 * @Author: l22886
 * @Date: 2022-03-14
 * Description: pt_notice_record 实体
 * Version: 1.0
 */
@ApiModel(value="PtNoticeRecord对象", description="")
@Table(name = "pt_notice_record")
public class PtNoticeRecord {


    @ApiModelProperty(value = "通知记录ID")
    @Column(name = "notice_id")
    private String noticeId;

    @ApiModelProperty(value = "应用ID")
    @Column(name = "app_id")
    private String appId;

    @ApiModelProperty(value = "申请单号")
    @Column(name = "order_id")
    private String orderId;

    @ApiModelProperty(value = "发起人工号")
    @Column(name = "apply_user_id")
    private String applyUserId;

    @ApiModelProperty(value = "通知方式：1 邮件；2 短信；3 公众号；")
    @Column(name = "notice_type")
    private Integer noticeType;

    @ApiModelProperty(value = "收信人工号")
    @Column(name = "target_id")
    private String targetId;

    @ApiModelProperty(value = "收信人姓名")
    @Column(name = "target_name")
    private String targetName;

    @ApiModelProperty(value = "收信人邮箱")
    @Column(name = "target_email")
    private String targetEmail;

    @ApiModelProperty(value = "收信人手机号")
    @Column(name = "target_phone")
    private String targetPhone;

    @ApiModelProperty(value = "通知标题")
    @Column(name = "notice_title")
    private String noticeTitle;

    @ApiModelProperty(value = "通知正文")
    @Column(name = "notice_content")
    private String noticeContent;

    @ApiModelProperty(value = "通知创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "发送成功标志：1 未发送；2 已发送；")
    @Column(name = "send_flag")
    private Integer sendFlag;

    @ApiModelProperty(value = "通知发送时间")
    @Column(name = "send_time")
    private Date sendTime;

    @ApiModelProperty(value = "上传附件文件ID")
    @Column(name = "upload_busi_id")
    private String uploadBusiId;

    @ApiModelProperty(value = "邮件图片")
    private byte[] noticeContentPic;

    @ApiModelProperty(value = "抄送人邮箱")
    @Column(name = "copy_to_email")
    private String copyToEmail;

    public String getNoticeId() {
        return noticeId;
    }

    public void setNoticeId(String noticeId) {
        this.noticeId = noticeId;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getApplyUserId() {
        return applyUserId;
    }

    public void setApplyUserId(String applyUserId) {
        this.applyUserId = applyUserId;
    }

    public Integer getNoticeType() {
        return noticeType;
    }

    public void setNoticeType(Integer noticeType) {
        this.noticeType = noticeType;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public String getTargetName() {
        return targetName;
    }

    public void setTargetName(String targetName) {
        this.targetName = targetName;
    }

    public String getTargetEmail() {
        return targetEmail;
    }

    public void setTargetEmail(String targetEmail) {
        this.targetEmail = targetEmail;
    }

    public String getTargetPhone() {
        return targetPhone;
    }

    public void setTargetPhone(String targetPhone) {
        this.targetPhone = targetPhone;
    }

    public String getNoticeTitle() {
        return noticeTitle;
    }

    public void setNoticeTitle(String noticeTitle) {
        this.noticeTitle = noticeTitle;
    }

    public String getNoticeContent() {
        return noticeContent;
    }

    public void setNoticeContent(String noticeContent) {
        this.noticeContent = noticeContent;
    }

    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getSendFlag() {
        return sendFlag;
    }

    public void setSendFlag(Integer sendFlag) {
        this.sendFlag = sendFlag;
    }

    public Date getSendTime() {
        return sendTime;
    }
    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public String getUploadBusiId() {
        return uploadBusiId;
    }

    public void setUploadBusiId(String uploadBusiId) {
        this.uploadBusiId = uploadBusiId;
    }

    public byte[] getNoticeContentPic() {
        return noticeContentPic;
    }
    public void setNoticeContentPic(byte[] noticeContentPic) {
        this.noticeContentPic = noticeContentPic;
    }

    public String getCopyToEmail() {
        return copyToEmail;
    }

    public void setCopyToEmail(String copyToEmail) {
        this.copyToEmail = copyToEmail;
    }

    @Override
    public String toString() {
        return "PtNoticeRecord{" +
                "noticeId=" + noticeId +
                ", appId=" + appId +
                ", orderId=" + orderId +
                ", applyUserId=" + applyUserId +
                ", noticeType=" + noticeType +
                ", targetId=" + targetId +
                ", targetName=" + targetName +
                ", targetEmail=" + targetEmail +
                ", targetPhone=" + targetPhone +
                ", noticeTitle=" + noticeTitle +
                ", noticeContent=" + noticeContent +
                ", createTime=" + createTime +
                ", sendFlag=" + sendFlag +
                ", sendTime=" + sendTime +
                ", uploadBusiId=" + uploadBusiId +
                ", noticeContentPic=" + noticeContentPic +
                ", copyToEmail=" + copyToEmail +
                "}";
    }
}
